package com.woniuxy.controller;

import com.woniuxy.entity.TopicTypeTable;
import com.woniuxy.service.TopicTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>题目类型的controller层<p>
 *
 * @author LSL
 * @date 2022/5/31 20:32
 */
@RestController
@RequestMapping("/topicType")
public class TopicTypeController {

    @Autowired
    private TopicTypeService topicTypeService;

    @RequestMapping("/findAllTopicType")//查询所有题目类型
    public List<TopicTypeTable> findPicType() {
        return topicTypeService.findAllTopicType();
    }
}
